	<?php $this->load->view('admin/partials/general_menu'); ?>
	<?php 
		$ci= &get_instance();	
		$recordArray = $ci->coin_packages_entity->getListCoinPackages();
		$typeArray = coinTypePackagesDataConfig();
	?>
	
	<div class="clrboth"></div>
	<h3>Coin Packages</h3>
	<?php $buttons = array('buttons'=>array('Add#add_coin_packages();') );?>
	<?php $this->load->view('admin/partials/buttons', $buttons ); ?>

	<div class="clrboth"></div>
	
	<table border="0" class="table-list">
		<thead>
			<tr>
				<th>Package</th>
				<th>Coin</th>
				<th>Cost( INR )</th>
				<th>Mode</th>
				<th><?php echo lang('dataman.manage'); ?></th>
			</tr>
		</thead>
		
		<tbody>
			<?php foreach( $recordArray as $item ): ?>
			<?php 
				$COIN_PACKAGE = $ci->coin_packages_entity->init('id', $item->id); 
			?>
			<tr>
				<td><?php echo $COIN_PACKAGE->getPackage(); ?></td>
				<td><?php echo $COIN_PACKAGE->getCoin(); ?></td>
				<td><?php echo format_Money($COIN_PACKAGE->getCost()); ?></td>
				<td><?php if($COIN_PACKAGE->getType()) echo $typeArray[$COIN_PACKAGE->getType()]; ?></td>
				<td>
					<a href="javascript:void(0);" onclick="coin_package_edit(<?php echo $COIN_PACKAGE->getId();?>)"><?php echo lang('dataman.edit');?></a>
					<?php /* if($CURRENCY->getCode() != 'ind'): */?>	
						&nbsp;|&nbsp;
						<a href="javascript:void(0);" onclick="coin_package_delete(<?php echo $COIN_PACKAGE->getId();?>)" ><?php echo lang('dataman.delete');?></a>
					<?php /* endif; */?>
				</td>
			</tr>
			<?php endforeach; ?>
		</tbody>
	</table>


